﻿using System;
using KC.Model.Storage.Base;

namespace KC.Model.Storage.Table
{
    public enum DatabaseStatus
    {
        Draft = 0,
        InProcess = 1,
        Finished = 2,
        Failed = 3,
    }

    public class DatabaseVersionInfo : AzureTableEntity
    {
        public DatabaseVersionInfo()
            : base("DatabaseVersionInfo", Guid.NewGuid().ToString())
        {
        }

        public string DatabaseName { get; set; }

        public int VersionNumber { get; set; }

        public DatabaseStatus Status { get; set; }

        public DateTime LastModifiedDate { get; set; }
    }
}
